package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * otherregistration
 * @author 
 */
public class Otherregistration implements Serializable {
    private Integer id;

    private Integer serviceid;

    private Integer registrationtypeid;

    private Integer obligee;

    private String boligeenumber;

    private Integer obligor;

    private String obligornumber;

    private String prevregisternumber;

    private Date registertime;

    private Integer uid;

    private Integer prevserviceid;

    private String descript;

    private Integer roomid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public Integer getRegistrationtypeid() {
        return registrationtypeid;
    }

    public void setRegistrationtypeid(Integer registrationtypeid) {
        this.registrationtypeid = registrationtypeid;
    }

    public Integer getObligee() {
        return obligee;
    }

    public void setObligee(Integer obligee) {
        this.obligee = obligee;
    }

    public String getBoligeenumber() {
        return boligeenumber;
    }

    public void setBoligeenumber(String boligeenumber) {
        this.boligeenumber = boligeenumber;
    }

    public Integer getObligor() {
        return obligor;
    }

    public void setObligor(Integer obligor) {
        this.obligor = obligor;
    }

    public String getObligornumber() {
        return obligornumber;
    }

    public void setObligornumber(String obligornumber) {
        this.obligornumber = obligornumber;
    }

    public String getPrevregisternumber() {
        return prevregisternumber;
    }

    public void setPrevregisternumber(String prevregisternumber) {
        this.prevregisternumber = prevregisternumber;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPrevserviceid() {
        return prevserviceid;
    }

    public void setPrevserviceid(Integer prevserviceid) {
        this.prevserviceid = prevserviceid;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Otherregistration other = (Otherregistration) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceid() == null ? other.getServiceid() == null : this.getServiceid().equals(other.getServiceid()))
            && (this.getRegistrationtypeid() == null ? other.getRegistrationtypeid() == null : this.getRegistrationtypeid().equals(other.getRegistrationtypeid()))
            && (this.getObligee() == null ? other.getObligee() == null : this.getObligee().equals(other.getObligee()))
            && (this.getBoligeenumber() == null ? other.getBoligeenumber() == null : this.getBoligeenumber().equals(other.getBoligeenumber()))
            && (this.getObligor() == null ? other.getObligor() == null : this.getObligor().equals(other.getObligor()))
            && (this.getObligornumber() == null ? other.getObligornumber() == null : this.getObligornumber().equals(other.getObligornumber()))
            && (this.getPrevregisternumber() == null ? other.getPrevregisternumber() == null : this.getPrevregisternumber().equals(other.getPrevregisternumber()))
            && (this.getRegistertime() == null ? other.getRegistertime() == null : this.getRegistertime().equals(other.getRegistertime()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getPrevserviceid() == null ? other.getPrevserviceid() == null : this.getPrevserviceid().equals(other.getPrevserviceid()))
            && (this.getDescript() == null ? other.getDescript() == null : this.getDescript().equals(other.getDescript()))
            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceid() == null) ? 0 : getServiceid().hashCode());
        result = prime * result + ((getRegistrationtypeid() == null) ? 0 : getRegistrationtypeid().hashCode());
        result = prime * result + ((getObligee() == null) ? 0 : getObligee().hashCode());
        result = prime * result + ((getBoligeenumber() == null) ? 0 : getBoligeenumber().hashCode());
        result = prime * result + ((getObligor() == null) ? 0 : getObligor().hashCode());
        result = prime * result + ((getObligornumber() == null) ? 0 : getObligornumber().hashCode());
        result = prime * result + ((getPrevregisternumber() == null) ? 0 : getPrevregisternumber().hashCode());
        result = prime * result + ((getRegistertime() == null) ? 0 : getRegistertime().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getPrevserviceid() == null) ? 0 : getPrevserviceid().hashCode());
        result = prime * result + ((getDescript() == null) ? 0 : getDescript().hashCode());
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", serviceid=").append(serviceid);
        sb.append(", registrationtypeid=").append(registrationtypeid);
        sb.append(", obligee=").append(obligee);
        sb.append(", boligeenumber=").append(boligeenumber);
        sb.append(", obligor=").append(obligor);
        sb.append(", obligornumber=").append(obligornumber);
        sb.append(", prevregisternumber=").append(prevregisternumber);
        sb.append(", registertime=").append(registertime);
        sb.append(", uid=").append(uid);
        sb.append(", prevserviceid=").append(prevserviceid);
        sb.append(", descript=").append(descript);
        sb.append(", roomid=").append(roomid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}